import { initMixin } from "./init"
import { initLifeCycle } from "./lifecycle"
import Watcher, { nextTick } from "./observe/watcher"
function Vue(options){ //options就是用户的选项
  this._init(options)
}

Vue.prototype.$nextTick = nextTick

initMixin(Vue) //初始化
initLifeCycle(Vue)
Vue.prototype.$watch = function(exprOrFb,cb,options={}){

  new Watcher(this,exprOrFb,{user:true},cb)
}

export default Vue